package server.util;

import java.io.IOException;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import server.config.ServerConfig;
import server.db.SQL;

public class CacheTableNeuErstellen {
	
	@SuppressWarnings("unused")
	private static Logger logger = Logger.getLogger(CacheTableNeuErstellen.class);
	
	public static void main(String[] args) {

		PropertyConfigurator.configure("log4J.cfg");
		try {
			new ServerConfig("serverConfigLocal.cfg");
			SQL.getInstance();

				
				SQL.fillFeuerwehrCache();
				System.out.println("Cache fertig");
				
				FeuerwehrenImAlarmierungTableUpdaten.main(null);
				
				SQL.unbekannteEinraegeClearen();
				
				SQL.fillCacheTableNeu(1);
				

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	

}
